package com.jeesite.modules.task.dceconomicindicator.entity;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

import javax.validation.constraints.Size;

/**
 * 任务扣分表Entity
 * @author xhc
 * @version 2022-10-29
 */
@Table(name="dc_sup_task_score", alias="a", label="任务扣分表信息", columns={
		@Column(name="score_id", attrName="scoreId", label="score_id", isPK=true),
		@Column(name="task_id", attrName="taskId", label="任务id"),
		@Column(name="action_id", attrName="actionId", label="任务分发id"),
		@Column(name="feedback_id", attrName="feedbackId", label="反馈id"),
		@Column(name="leader_org_code", attrName="leaderOrgCode", label="牵头单位id"),
		@Column(name="leader_org_name", attrName="leaderOrgName", label="牵头单位", queryType=QueryType.LIKE),
		@Column(name="score", attrName="score", label="被扣分", isUpdateForce=true),
		@Column(name="create_date", attrName="createDate", label="创建时间", isUpdate=false, isQuery=false, isUpdateForce=true),
		@Column(name="score_reason", attrName="scoreReason", label="扣分原因"),
	}, orderBy="a.score_id DESC"
)
public class DcSupTaskScore extends DataEntity<DcSupTaskScore> {
	
	private static final long serialVersionUID = 1L;
	 /**
	 * score_id
	 */
	private String scoreId;
	 /**
	 * 任务id
	 */
	private String taskId;
	 /**
	 * 任务分发id
	 */
	private String actionId;
	 /**
	 * 反馈id
	 */
	private String feedbackId;
	 /**
	 * 牵头单位id
	 */
	private String leaderOrgCode;
	 /**
	 * 牵头单位
	 */
	private String leaderOrgName;
	 /**
	 * 被扣分
	 */
	private String score;
	 /**
	 * 扣分原因
	 */
	private String scoreReason;
	private String createUnit;
	private String echart;

	public String getEchart() {
		return echart;
	}

	public void setEchart(String echart) {
		this.echart = echart;
	}

	public String getCreateUnit() {
		return createUnit;
	}

	public void setCreateUnit(String createUnit) {
		this.createUnit= createUnit;
	}

	public String getTaskYear() {
		return taskYear;
	}

	public void setTaskYear(String taskYear) {
		this.taskYear = taskYear;
	}

	private String taskYear;
	
	public DcSupTaskScore() {
		this(null);
	}

	public DcSupTaskScore(String id){
		super(id);
	}
	
	public String getScoreId() {
		return scoreId;
	}

	public void setScoreId(String scoreId) {
		this.scoreId = scoreId;
	}
	
	@Size(min=0, max=32, message="任务id长度不能超过 32 个字符")
	public String getTaskId() {
		return taskId;
	}

	public void setTaskId(String taskId) {
		this.taskId = taskId;
	}
	
	@Size(min=0, max=32, message="任务分发id长度不能超过 32 个字符")
	public String getActionId() {
		return actionId;
	}

	public void setActionId(String actionId) {
		this.actionId = actionId;
	}
	
	@Size(min=0, max=32, message="反馈id长度不能超过 32 个字符")
	public String getFeedbackId() {
		return feedbackId;
	}

	public void setFeedbackId(String feedbackId) {
		this.feedbackId = feedbackId;
	}
	
	@Size(min=0, max=32, message="牵头单位id长度不能超过 32 个字符")
	public String getLeaderOrgCode() {
		return leaderOrgCode;
	}

	public void setLeaderOrgCode(String leaderOrgCode) {
		this.leaderOrgCode = leaderOrgCode;
	}
	
	@Size(min=0, max=100, message="牵头单位长度不能超过 100 个字符")
	public String getLeaderOrgName() {
		return leaderOrgName;
	}

	public void setLeaderOrgName(String leaderOrgName) {
		this.leaderOrgName = leaderOrgName;
	}
	
	public  String getScore() {
		return score;
	}

	public void setScore(String score) {
		this.score = score;
	}
	
	@Size(min=0, max=200, message="扣分原因长度不能超过 200 个字符")
	public String getScoreReason() {
		return scoreReason;
	}

	public void setScoreReason(String scoreReason) {
		this.scoreReason = scoreReason;
	}
	
}